﻿using System.ComponentModel.DataAnnotations;

namespace MockSchoolManagement.Mvc.ViewModel
{
    public class ChangePasswordViewModel
    {
        [Required]
        [Display(Name="当前密码")]
        [DataType(DataType.Password)]
        public string CurrentPassword { get; set; }
        [Required]
        [Display(Name = "新密码")]
        [DataType(DataType.Password)]
        public string NewPassword { get; set; }
        [DataType(DataType.Password)]
        [Display(Name = "确认新密码")]
        [Compare("NewPassword",ErrorMessage = "新密码与确认密码不匹配")]
        public string ConfirmPassword { get; set; }
    }
}
